﻿using Cms.Core.Application.Secutiry.Token;
using Cms.Core.Infrastructure.Dependency;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;

namespace Cms.Core.Application.Secutiry.Base
{
    /// <summary>
    /// 
    /// </summary>
   public interface IOnlineTokenProvider : ISingletonDependency
    {
        /// <summary>
        /// 
        /// </summary>
        /// <param name="provider"></param>
        /// <param name="userId"></param>
        /// <param name="token"></param>
        /// <param name="expirationTime"></param>
        /// <returns></returns>

        Task<OnlineToken> Create(IServiceProvider provider, Guid userId, string token, DateTime expirationTime);
    }
}
